package cn.feizhu.aimarket.ai.utils.constants;

public class BookConstant {

    public static final String BOOK_SAVE_DIR = System.getProperty("user.dir") + "/books";

    public static String buildDirPath(Long appId, Long userId) {
        return String.format("%s/%d/%d", BOOK_SAVE_DIR, appId, userId);
    }

    public static String buildBookFilePath(Long appId, Long userId,String fileName) {
        return String.format("%s/%d/%d/%s", BOOK_SAVE_DIR, appId, userId, fileName);
    }


}
